package com.geek.java.ch02;

public class PersonMainTest {
    public static void main(String[] args) {
        Person p1 = new Person("许仙" , 25 , true , null);
        Person p2 = new Person("白娘子" , 1000 , false , null);
        Person p3 = new Person("小青" , 500 , false , null);
        Person p4 = new Person("法海" , 18 , true , null);

        p1.marry(p2);

        p1.marry(p3);

        p3.marry(p4);

        p1.marry(p4);
    }

}
